<!DOCTYPE html>
<html>
<head>
    <#assign dicSelect=JspTaglibs["http://www.casic304.cn/dicSelect"] />
    <#assign secSelect=JspTaglibs["http://www.casic304.cn/secSelect"] />
    <#assign fillDept=JspTaglibs["http://www.casic304.cn/fillDept"] />
    <meta charset="utf-8">
    <title>质量技术支撑机构基本信息</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <link rel="stylesheet" href="${ctx}/layui/css/layui.css" media="all"/>
    <link rel="stylesheet" href="${ctx}/qbdmsStatic/iconfont/iconfont.css"/>
    <link rel="stylesheet" href="${ctx}/qbdmsStatic/style/qbdms.css">
    <script type="text/javascript">
        var __ctx = "${ctx}";
    </script>
    <#if isClose == 'true'>
    <style>
        .listBody .qbdms-bodyDiv{padding: 0 }
        body.qbdms-particulars .qbdms-bodyDiv div.layui-table-view-body{padding: 16px}
    </style>
</#if>
</head>
<body class="listBody qbdms-particulars">

<div class="qbdms-bodyDiv">
    <div class="layui-table-view-body qbdms-add-view-body">
        <#if isClose != 'true'><div class="qbdms-formTitle">质量技术支撑机构 <i class="qbdms-returnOn closeWindow">返回</i></div></#if>
        <form class="formPreview layui-form" requrl="${ctx}/qbdms/wQbdQuasuporgBase/get"
              lay-filter="wQbdQuasuporgBaseDataForm">

            <div class="" style="width: 100%;overflow-x: auto">
                <table class="tableExcel qbdms-zeroTable" width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tbody>
                    <tr id="tbxx">
                    </tr>

                    <tr>
                        <td class="qbdms-zeroTable-lable">机构名称<span style="color: red;">*</span></td>
                        <td name='orgName'></td>
                        <td class="qbdms-zeroTable-lable">密级<span style="color: red;">*</span></td>
                        <td name=''>
                            <@secSelect.sec_select data_src=1 required=true name="secret"/>
                        </td>
                        <td class="qbdms-zeroTable-lable">挂靠单位<span style="color: red;">*</span></td>
                        <td name='affiliatedUnits'></td>
                    </tr>
                    <tr>
                        <td class="qbdms-zeroTable-lable">批复时间<span style="color: red;">*</span></td>
                        <td name='replyTime'></td>
                        <input type="hidden" name="replyTime"  placeholder="请输入" lay-verify="required" readonly
                               class="layui-input time-init dateTimeFiled date" maxlength="50" fieldname="replyTime" lay-reqtext="批复时间是必填项">
                        <td class="qbdms-zeroTable-lable">批复文号</td>
                        <td name='replyNo'></td>
                        <td class="qbdms-zeroTable-lable">挂牌情况</td>
                        <td name='listing'></td>
                    </tr>
                    <tr>
                        <td class="qbdms-zeroTable-lable">挂牌单位</td>
                        <td name='listingUnit'></td>
                        <td class="qbdms-zeroTable-lable">联系人</td>
                        <td name='contacts'></td>
                        <td class="qbdms-zeroTable-lable">联系方式</td>
                        <td name='contactsInfo'></td>
                    </tr>
                    <tr>
                        <td class="qbdms-zeroTable-lable">批复文件</td>
                        <td colspan="5" name=''>
                            <div class="uploadFileCont">
                                <button type="button"
                                        class="layui-btn iconfont iconupload fileUpload qbdms-fileUp"
                                        id="replyDocfileList">上传附件</button><i class="qbdms-fileUpText">支持单个附件上传，附件格式：doc  docx  pdf，文件大小限制不超过100M</i>
                                <input type="text" id="replyDoc" class="uploadInput"
                                       name="replyDoc" fieldname="replyDoc" style="display: none">
                                <div class="uploadFileList" fileUploadName="replyDoc"></div>
                            </div>
                        </td>
                    </tr>
                    </tbody>
                </table>
            </div>

            <p class="qbdms-SubTableTitle"><span>资质认定</span><i class="qbdms-fileUpText">支持单个附件上传，附件格式：doc  docx  pdf，文件大小限制不超过100M</i></p>
            <div class="qbdms-tableDiv">
                <a modetype="2" class="addFormTr1"><i class="layui-icon layui-icon-addition"></i>新增</a>
                <table class="qbdms-temTable wQbdQuasuporgAffirmList subFormTable"
                       id="wQbdQuasuporgAffirmList" style="min-width: 999px;">
                    <tbody>
                    <tr class="temSpace qbdms-temTable-thead">
                        <td class="temSpace" style="width: 32px;">
                            序号
                        </td>
                        <td class="temSpace subDialogShowState" style="width: 90px;">
                            年度<span style="color: red;">*</span>
                        </td>
                        <td class="temSpace subDialogShowState" style="width: 170px;">
                            认定阶段<span style="color: red;">*</span>
                        </td>
                        <td class="temSpace subDialogShowState" style="width: 170px;">
                            认定环节<span style="color: red;">*</span>
                        </td>
                        <td class="temSpace subDialogShowState" style="width: 200px;">
                            报告名称<span style="color: red;">*</span>
                        </td>
                        <td class="temSpace subDialogShowState">
                            文件<span style="color: red;">*</span>
                        </td>
                    </tr>
                    <tr class="temSpace subContTem">
<#--                        <input name="s:wQbdQuasuporgAffirmList:affirmId" style="display: none">-->
                        <td class="temSpace qbdms-temTable-seNumber" name="s:wQbdQuasuporgAffirmList:affirmSort">
                            <input   style="display: none">
                            <div class="temTag">0</div>
                        </td>
                        <td class="temSpace qbdms-temTable-td"  name="s:wQbdQuasuporgAffirmList:affirmYear">

                            <input type="hidden" placeholder="请输入" requiredFlag="required"
                                   class="layui-input year dateTimeFiled" readonly lay-reqtext="年度是必填项"
                                   name="s:wQbdQuasuporgAffirmList:affirmYear">
                        </td>
                        <td class="temSpace qbdms-temTable-td" name="s:wQbdQuasuporgAffirmList:affirmStage">
                            <@dicSelect.dic name="s:wQbdQuasuporgAffirmList:affirmStage" reqtext="认定阶段是必填项" nodeKey="rdjd" filter="rdjd" search=true addSelectText=true z_verify="required"/>
                        </td>

                        <td class="temSpace qbdms-temTable-td"  name="s:wQbdQuasuporgAffirmList:affirmLink">
                        </td>
                        <td class="temSpace qbdms-temTable-td"  name="s:wQbdQuasuporgAffirmList:affirmReportName">
                        </td>
                        <td class="temSpace qbdms-temTable-td">
                            <div class="uploadFileCont">
                                <button type="button" class="layui-btn iconfont iconupload fileUpload qbdms-fileUp">上传附件</button>
                                <input type="text" class="uploadInput"
                                       requiredFlag="fileRequired"
                                       name="s:wQbdQuasuporgAffirmList:affirmFile"
                                       fieldname="s:wQbdQuasuporgAffirmList:affirmFile"
                                       lay-reqtext="附件是必填项"
                                       style="display:none">
                                <div class="uploadFileList"
                                     fileUploadName="s:wQbdQuasuporgAffirmList:affirmFile"></div>
                            </div>
                        </td>
                    </tr>
                    </tbody>
                </table>
            </div>

            <p class="qbdms-SubTableTitle"><span>监督检查</span><i class="qbdms-fileUpText">支持单个附件上传，附件格式：doc  docx    pdf，文件大小限制不超过100M</i></p>
            <div class="qbdms-tableDiv">
                <a modetype="2" class="addFormTr1"><i class="layui-icon layui-icon-addition"></i>新增</a>
                <table class="qbdms-temTable wQbdQuasuporgInspectList subFormTable"
                       id="wQbdQuasuporgInspectList" style="min-width: 1399px">
                    <tbody>
                    <tr class="temSpace qbdms-temTable-thead">
                        <td class="temSpace" style="width: 32px;">
                            序号
                        </td>
                        <td class="temSpace subDialogShowState" style="width: 90px;">
                            年度<span style="color: red;">*</span>
                        </td>
                        <td class="temSpace subDialogShowState" style="width: 110px;">
                            检查阶段<span style="color: red;">*</span>
                        </td>
                        <td class="temSpace subDialogShowState" style="width: 110px;">
                            认定环节<span style="color: red;">*</span>
                        </td>
                        <td class="temSpace subDialogShowState" style="width: 110px;">
                            问题<span  style="color: red;">*</span>
                        </td>
                        <td class="temSpace subDialogShowState" style="width: 110px;">
                            措施<span style="color: red;">*</span>
                        </td>
                        <td class="temSpace subDialogShowState" style="width: 110px;">
                            闭环情况<span style="color: red;">*</span>
                        </td>
                        <td class="temSpace subDialogShowState" style="width: 110px;">
                            结论<span  style="color: red;">*</span>
                        </td>
                        <td class="temSpace subDialogShowState" style="width: 110px;">
                            证明材料名称<span  style="color: red;">*</span>
                        </td>
                        <td class="temSpace subDialogShowState">
                            文件<span style="color: red;">*</span>
                        </td>
                    </tr>
                    <tr class="temSpace subContTem">
                        <td class="temSpace qbdms-temTable-seNumber">
                            <input name="s:wQbdQuasuporgInspectList:inspectSort"  style="display: none">
                            <div class="temTag">0</div>
                        </td>
                        <td class="temSpace qbdms-temTable-td" name="s:wQbdQuasuporgInspectList:inspectYear">
                            <input name="s:wQbdQuasuporgInspectList:inspectId" style="display: none">
                            <input type="hidden" placeholder="请输入" requiredFlag="required"
                                   class="layui-input year dateTimeFiled" readonly lay-reqtext="年度是必填项"
                                   name="s:wQbdQuasuporgInspectList:inspectYear">
                        </td>
                        <td class="temSpace qbdms-temTable-td" name="s:wQbdQuasuporgInspectList:inspectStage">
                            <@dicSelect.dic name="s:wQbdQuasuporgInspectList:inspectStage" reqtext="检查阶段是必填项" nodeKey="jcjd" search=true addSelectText=true z_verify="required"/>
                        </td>
                        <td class="temSpace qbdms-temTable-td" name="s:wQbdQuasuporgInspectList:inspectLink">
                            <@dicSelect.dic name="s:wQbdQuasuporgInspectList:inspectLink" reqtext="认定环节是必填项" nodeKey="jchj" search=true addSelectText=true z_verify="required"/>
                        </td>
                        <td class="temSpace qbdms-temTable-td"  name="s:wQbdQuasuporgInspectList:inspectProblem">
                        </td>
                        <td class="temSpace qbdms-temTable-td"  name="s:wQbdQuasuporgInspectList:inspectMeasures">
                        </td>
                        <td class="temSpace qbdms-temTable-td"  name="s:wQbdQuasuporgInspectList:inspectCloseStage">
                        </td>
                        <td class="temSpace qbdms-temTable-td"  name="s:wQbdQuasuporgInspectList:inspectConclusion">
                            <@dicSelect.dic name="s:wQbdQuasuporgInspectList:inspectConclusion" reqtext="结论是必填项" nodeKey="jl" search=true addSelectText=true z_verify="required"/>
                        </td>
                        <td class="temSpace qbdms-temTable-td" name="s:wQbdQuasuporgInspectList:inspectMaterialName">
                        </td>
                        <td class="temSpace qbdms-temTable-td">
                            <div class="uploadFileCont">
                                <button type="button" class="layui-btn iconfont iconupload fileUpload qbdms-fileUp">上传附件</button>
                                <input type="text" class="uploadInput"
                                       requiredFlag="fileRequired"
                                       lay-reqtext="文件是必填项"
                                       name="s:wQbdQuasuporgInspectList:inspectFile"
                                       fieldname="s:wQbdQuasuporgInspectList:inspectFile"
                                       style="display:none">
                                <div class="uploadFileList"
                                     fileUploadName="s:wQbdQuasuporgInspectList:inspectFile"></div>
                            </div>
                        </td>
                    </tr>
                    </tbody>
                </table>
            </div>

            <p class="qbdms-SubTableTitle"><span>会议</span><i class="qbdms-fileUpText">支持单个附件上传，附件格式：doc  docx  pdf，文件大小限制不超过100M</i></p>
            <div class="qbdms-tableDiv">
                <a modetype="2" class="addFormTr1"><i class="layui-icon layui-icon-addition"></i>新增</a>
                <table class="qbdms-temTable wQbdQuasuporgMeetingList subFormTable"
                       style="min-width: 1599px"
                       id="wQbdQuasuporgMeetingList">
                    <tbody>
                    <tr class="temSpace qbdms-temTable-thead">
                        <td class="temSpace" style="width: 32px;">
                            序号
                        </td>
                        <td class="temSpace subDialogShowState" style="width: 90px;">
                            年度<span
                                    style="color: red;">*</span>
                        </td>
                        <td class="temSpace subDialogShowState" style="width: 110px;">
                            会议时间<span
                                    style="color: red;">*</span>
                        </td>
                        <td class="temSpace subDialogShowState" style="width: 110px;">
                            会议名称<span
                                    style="color: red;">*</span>
                        </td>
                        <td class="temSpace subDialogShowState" style="width: 110px;">
                            会议地点<span
                                    style="color: red;">*</span>
                        </td>
                        <td class="temSpace subDialogShowState" style="width: 110px;">
                            参会人员<span
                                    style="color: red;">*</span>
                        </td>
                        <td class="temSpace subDialogShowState" style="width: 110px;">
                            会议文件名称<span
                                    style="color: red;">*</span>
                        </td>
                        <td class="temSpace subDialogShowState">
                            文件<span
                                    style="color: red;">*</span>
                        </td>
                        <td class="temSpace subDialogShowState">
                            会议纪要<span
                                    style="color: red;">*</span>
                        </td>
                    </tr>
                    <tr class="temSpace subContTem">
                        <td class="temSpace qbdms-temTable-seNumber">
                            <input name="s:wQbdQuasuporgMeetingList:meetingSort"  style="display: none">
                            <div class="temTag">0</div>
                        </td>
                        <td class="temSpace qbdms-temTable-td" name="s:wQbdQuasuporgMeetingList:meetingYear">
                            <input name="s:wQbdQuasuporgMeetingList:meetingId" style="display: none">
                            <input type="hidden" placeholder="请输入" requiredFlag="required"
                                   class="layui-input year dateTimeFiled" readonly lay-reqtext="年度是必填项"
                                   name="s:wQbdQuasuporgMeetingList:meetingYear">
                        </td>
                        <td class="temSpace qbdms-temTable-td" name="s:wQbdQuasuporgMeetingList:meetingTime" >
                            <input type="hidden" name="s:wQbdQuasuporgMeetingList:meetingTime"  placeholder="请输入" requiredFlag="required"
                                   class="layui-input dateTimeFiled input-right date" readonly lay-reqtext="会议时间是必填项"
                                   maxlength="50">
                        </td>
                        <td class="temSpace qbdms-temTable-td"  name="s:wQbdQuasuporgMeetingList:meetingName">
                        </td>
                        <td class="temSpace qbdms-temTable-td"  name="s:wQbdQuasuporgMeetingList:meetingPlace">
                        </td>
                        <td class="temSpace qbdms-temTable-td"  name="s:wQbdQuasuporgMeetingList:meetingPerson">
                        </td>
                        <td class="temSpace qbdms-temTable-td" name="s:wQbdQuasuporgMeetingList:meetingFileName">
                        </td>
                        <td class="temSpace qbdms-temTable-td">
                            <div class="uploadFileCont">
                                <button type="button" class="layui-btn iconfont iconupload fileUpload qbdms-fileUp">上传附件</button>
                                <input type="text" class="uploadInput"
                                       lay-reqtext="文件是必填项"
                                       requiredFlag="fileRequired"
                                       name="s:wQbdQuasuporgMeetingList:meetingFile"
                                       fieldname="s:wQbdQuasuporgMeetingList:meetingFile"
                                       style="display:none">
                                <div class="uploadFileList"
                                     fileUploadName="s:wQbdQuasuporgMeetingList:meetingFile"></div>
                            </div>
                        </td>
                        <td class="temSpace qbdms-temTable-td">
                            <div class="uploadFileCont">
                                <button type="button" class="layui-btn iconfont iconupload fileUpload qbdms-fileUp">上传附件</button>
                                <input type="text" class="uploadInput"
                                       requiredFlag="fileRequired"
                                       lay-reqtext="会议纪要是必填项"
                                       name="s:wQbdQuasuporgMeetingList:meetingMinutes"
                                       fieldname="s:wQbdQuasuporgMeetingList:meetingMinutes"
                                       style="display:none">
                                <div class="uploadFileList"
                                     fileUploadName="s:wQbdQuasuporgMeetingList:meetingMinutes"></div>
                            </div>
                        </td>
                    </tr>
                    </tbody>
                </table>
            </div>

            <p class="qbdms-SubTableTitle"><span>工作总结</span><i class="qbdms-fileUpText">支持单个附件上传，附件格式：doc  docx  pdf，文件大小限制不超过100M</i></p>
            <div class="qbdms-tableDiv">
                <a modetype="2" class="addFormTr1"><i class="layui-icon layui-icon-addition"></i>新增</a>
                <table class="qbdms-temTable wQbdQuasuporgSummaryList subFormTable"
                       id="wQbdQuasuporgSummaryList" style="min-width: 999px;">
                    <tbody>
                    <tr class="temSpace qbdms-temTable-thead">
                        <td class="temSpace" style="width: 32px;">
                            序号
                        </td>
                        <td class="temSpace subDialogShowState" style="width: 90px;">
                            年度<span
                                    style="color: red;">*</span>
                        </td>
                        <td class="temSpace subDialogShowState" style="width: 200px;">
                            工作总结名称<span
                                    style="color: red;">*</span>
                        </td>
                        <td class="temSpace subDialogShowState">
                            文件<span
                                    style="color: red;">*</span>
                        </td>
                    </tr>
                    <tr class="temSpace subContTem">
                        <td class="temSpace qbdms-temTable-seNumber">
                            <input name="s:wQbdQuasuporgSummaryList:summarySort"  style="display: none">
                            <div class="temTag">0</div>
                        </td>
                        <td class="temSpace qbdms-temTable-td" name="s:wQbdQuasuporgSummaryList:summaryYear">
                            <input name="s:wQbdQuasuporgSummaryList:summaryId" style="display: none">
                            <input type="hidden" placeholder="请输入" requiredFlag="required"
                                   class="layui-input year dateTimeFiled" readonly lay-reqtext="年度是必填项"
                                   name="s:wQbdQuasuporgSummaryList:summaryYear">
                        </td>
                        <td class="temSpace qbdms-temTable-td"  name="s:wQbdQuasuporgSummaryList:summaryName">
                        </td>
                        <td class="temSpace qbdms-temTable-td">
                            <div class="uploadFileCont">
                                <button type="button" class="layui-btn iconfont iconupload fileUpload qbdms-fileUp">上传附件</button>
                                <input type="text" class="uploadInput"
                                       requiredFlag="fileRequired"
                                       name="s:wQbdQuasuporgSummaryList:summaryFile"
                                       fieldname="s:wQbdQuasuporgSummaryList:summaryFile"
                                       lay-reqtext="文件是必填项"
                                       style="display:none">
                                <div class="uploadFileList"
                                     fileUploadName="s:wQbdQuasuporgSummaryList:summaryFile"></div>
                            </div>
                        </td>
                    </tr>
                    </tbody>
                </table>
            </div>

            <p class="qbdms-SubTableTitle"><span>规章制度</span><i class="qbdms-fileUpText">支持单个附件上传，附件格式：doc  docx  pdf，文件大小限制不超过100M</i></p>
            <div class="qbdms-tableDiv">
                <a modetype="2" class="addFormTr1"><i class="layui-icon layui-icon-addition"></i>新增</a>
                <table class="qbdms-temTable wQbdQuasuporgSystemList subFormTable"
                       style="min-width: 999px"
                       id="wQbdQuasuporgSystemList">
                    <tbody>
                    <tr class="temSpace qbdms-temTable-thead">
                        <td class="temSpace" style="width: 32px;">
                            序号
                        </td>
                        <td class="temSpace subDialogShowState" style="width: 90px;">
                            年度<span
                                    style="color: red;">*</span>
                        </td>
                        <td class="temSpace subDialogShowState" style="width: 200px;">
                            类别<span
                                    style="color: red;">*</span>
                        </td>
                        <td class="temSpace subDialogShowState" style="width: 200px;">
                            制度名称<span
                                    style="color: red;">*</span>
                        </td>
                        <td class="temSpace subDialogShowState">
                            文件<span
                                    style="color: red;">*</span>
                        </td>
                    </tr>
                    <tr class="temSpace subContTem">
                        <td class="temSpace qbdms-temTable-seNumber">
                            <input name="s:wQbdQuasuporgSystemList:systemSort"  style="display: none">
                            <div class="temTag">0</div>
                        </td>
                        <td class="temSpace qbdms-temTable-td"  name="s:wQbdQuasuporgSystemList:systemYear">
                            <input name="s:wQbdQuasuporgSystemList:systemId" style="display: none">
                            <input type="hidden" placeholder="请输入" requiredFlag="required"
                                   class="layui-input year dateTimeFiled" readonly lay-reqtext="年度是必填项"
                                   name="s:wQbdQuasuporgSystemList:systemYear">
                        </td>
                        <td class="temSpace qbdms-temTable-td" name="s:wQbdQuasuporgSystemList:systemType">
                            <@dicSelect.dic name="s:wQbdQuasuporgSystemList:systemType" reqtext="类别是必填项" nodeKey="jglb" search=true addSelectText=true z_verify="required"/>
                        </td>
                        <td class="temSpace qbdms-temTable-td" name="s:wQbdQuasuporgSystemList:systemName">
                        </td>
                        <td class="temSpace qbdms-temTable-td">
                            <div class="uploadFileCont">
                                <button type="button" class="layui-btn iconfont iconupload fileUpload qbdms-fileUp">上传附件</button>
                                <input type="text" class="uploadInput"
                                       requiredFlag="fileRequired"
                                       lay-reqtext="文件是必填项"
                                       name="s:wQbdQuasuporgSystemList:systemFile"
                                       fieldname="s:wQbdQuasuporgSystemList:systemFile"
                                       style="display:none">
                                <div class="uploadFileList"
                                     fileUploadName="s:wQbdQuasuporgSystemList:systemFile"></div>
                            </div>
                        </td>
                    </tr>
                    </tbody>
                </table>
            </div>



            <#if isClose != 'true'>
                <div class="layui-form-item btnformItem">
                    <p>
                        <button type="reset" id="closeWindow"
                                class="layui-btn layui-btn-sm btn-save qbdms-oneBtnLine">返回
                        </button>
                    </p>
                </div>
            </#if>
            <div class="layui-hide">
                <input type="text" name="id" placeholder="请输入"  class="layui-input "
                       maxlength="50" fieldname="id">
            </div>
        </form>
    </div>
</div>




<script src="${ctx}/qbdmsStatic/public/configFile.js"></script>
<script src="${ctx}/layui/layui.js"></script>

<script>
    layui.config({
        base: serverPath.qbdmsPath + staticPath.qbdmsPath //静态资源所在路径
    }).extend({
        index: 'lib/index' //主入口模块
    }).use(['index','setter','common','laydate','jquery','propsHandle','publicMethods','qbdmsForm'], function () {
        var laydate = layui.laydate;
        var $ = layui.jquery;
        var publicMethods = layui.publicMethods;
        var setter = layui.setter;
        var form = layui.qbdmsForm;
        var common = layui.common;
        var propsHandle = layui.propsHandle;
        var secSelect = '<@secSelect.sec_select data_src=1 hasBlank=false/>';
        var defProps = {
                //viewMould: 'form/formDef/view/formDesign/moulds/', // 组件模块 存放文件 *****
                viewMould: 'moulds/', // 组件模块 存放文件 *****
                selectorBtn: '.selectorBtn'
            },
            temQuery = new propsHandle()  // 实例化模板功能部分
        ;


        // 初始化模板功能
        temQuery.initTem({
            selectorBtn: defProps.selectorBtn,
            selectorTemPath: setter.views + defProps.viewMould
        });
        form.verify({
            fileRequired: [/[\S]+/, "没有上传对应附件"],
            information: [/^(1\d{10}|0\d{2,3}-?\d{7,8})$/,"请输入正确的联系方式！"]
        });
        $(".subContTem").hide();
        new propsHandle().initSubEvent("", serverPath, setter);
        common.updateForm({
            name:'wQbdQuasuporgBaseDataForm',
            idValue:"${id}",
            primary:"id",
            getCallback: function (data) {
                // $("#tbxx").html("<span class='qbdms-TBinformation'>填报信息:</span><span class='qbdms-TBinformationText'>【" + data.data.filldept + " | " + data.data.fillman + " | " + data.data.filldate + "】</span>");
                $("#tbxx").html("<td class='qbdms-zeroTable-lable'>填报信息:</td><td colspan='5' class=''>【"+data.data.filldept+" | "+data.data.fillman+"  | "+data.data.filldate+"】</td>");


                //-修改页面 初始化附件组件 开始 ------------------------------------------
                $('.uploadFileList').each(function () {
                    var fileUploadName = $(this).attr("fileUploadName");
                    var jsonFile = data.data[fileUploadName];
                    var files = eval(jsonFile);
                    if (files) {
                        for (var i = 0; i < files.length; i++) {
                            var fileLevel = files[i].fileLevel;
                            var fileLevelText = files[i].fileLevelText;
                            var fileSec = '<div class="fileSecLevel fileSecXg layui-input-inline">' + '<@secSelect.sec_select data_src=1 hasBlank=false/>' + "</div>";
                            var newStr = '<span class="file-id" style="margin-right: 20px;" fileId=' + files[i].fileId + ' fileLevelText="' + fileLevelText + '">' + fileSec + '<span class="file-name" title="点击下载文件" onclick="downFile(this)">' + files[i].fileName + '</span></span>';
                            $(this).html(newStr);
                            $(this).find("select:last").val(fileLevel);
                            $(this).find("select:last").attr("disabled", "disabled");
                        }
                    }
                });
                $('table.subFormTable').each(function () {
                    var table = {
                        tableName: $(this).attr('class').split(" ")[1],
                        fields: []
                    };
                    table.fields = data.data[table.tableName];
                    if(table.fields.length==0){
                        $(this).parent(".qbdms-tableDiv").append("<p>无数据</p>")
                    }else {
                        $(this).parent(".qbdms-tableDiv").css('padding',"0px")
                    }
                    for (var i = 0, len = table.fields.length; i < len; i++) {
                        var dataRow = table.fields[i];
                        $("." + table.tableName).prev().click();
                        //这里有子表表头占一行，子表隐藏行占一行，所以取需要赋值的行时，需要temp=i+2
                        var domRow = $(this).find("tr.temSpace:eq(" + (i * 1 + 2) + ")");
                        $.each(dataRow, function (j, val) {
                            var domItem = domRow.find("[name$='" + j + "']");
                            if (domItem) {
                                if(domItem.hasClass("date")){
                                    if(val){
                                        var curDate = new Date(val);
                                        val = curDate.getFullYear()+"-"+publicMethods.parTime(curDate.getMonth() + 1)+"-"+publicMethods.parTime(curDate.getDate());
                                    }
                                }
                                domItem.html(val);
                            }else{
                                domItem.html(val);
                            }
                        });
                    }
                });
                $('.subFormTable').each(function (index0, element0) {
                    var id = $(this).attr('id');
                    $(this).find("tr").each(function(index1,element1){
                        if (index1 === 0 || index1 === 1) {
                            return true;
                        }
                        $(this).find(".uploadFileList").each(function (index2, element2) {
                            var fileUploadName = $(this).attr("fileUploadName");
                            var text = fileUploadName.split(":");
                            var jsonFile = "data.data." + id + "[" + (index1 * 1 - 2) + "]" + "." + text[2];
                            var files = eval(eval(jsonFile));
                            if (files) {
                                for (var i = 0; i < files.length; i++) {
                                    var fileLevel = files[i].fileLevel;
                                    var fileLevelText = files[i].fileLevelText;
                                    var fileSec = '<div class="fileSecLevel fileSecXg layui-input-inline">' + '<@secSelect.sec_select data_src=1 hasBlank=false/>' + "</div>";
                                    var newStr = '<span class="file-id" fileId=' + files[i].fileId + ' fileLevelText="' + fileLevelText + '">' + fileSec + '<span class="file-name" title="点击下载文件" onclick="downFile(this)">' + files[i].fileName + '</span></span>';
                                    $(this).html(newStr);
                                    $(this).siblings("button").hide();
                                    $(this).find("select:last").val(fileLevel);
                                    $(this).find("select:last").attr("disabled", "disabled");
                                }
                            }
                        });
                    });
                });
            }
        });

        $(document).on('click', '.addFormTr1', function () {
            var count = 1;
            var modetype = $(this).attr('modetype'),
                copyObj = $(this).parent().children('.subFormTable'),
                copyHtm = copyObj.find('tr').eq(1),
                id = copyObj.attr("id");
            if (modetype === '2') {
                //在这里做一个转换，控制子表隐藏行的必填
                var copyHtmlStr = copyHtm.html();
                copyHtmlStr = copyHtmlStr.replace(/requiredflag/g, "lay-verify");
                // 表格
                copyObj.append('<tr class="temSpace">' + copyHtmlStr + '</tr>');
                // copyObj.append('<tr class="temSpace">' + copyHtm.html() + '</tr>');
                var trArr = copyObj.find('tr');
                trArr.eq(trArr.length - 1).find('td').eq(0).find('.temTag').html(trArr.length - 2);
            }
            form.render();
            publicMethods.bottomFixd();
        });

        //下载附件
        window.downFile = function (obj) {
            var fileId = $(obj).parents("span").attr("fileId");
            window.location.href = serverPath.qbdmsPath + setter.extendLinkPath + "attachFile/download?fileId=" + fileId;
        };

        //关闭当前页面
        $("#closeWindow,.closeWindow").click(function () {
            window.location.href = serverPath.qbdmsPath + '/qbdms/wQbdQuasuporgBase/view/list';
        });
        var runId = "${runId}";
        if(runId == null || runId == ''){
            $("#hideAndShow").show();
        }
        publicMethods.bottomFixd();
        form.on('select', function(data){
            publicMethods.bottomFixd()
        });
        //-- 清空表单控件值 结束 --------------------------------------------------------------
        $("body *").not("#closeWindow").attr("disabled", "disabled");
        $(".uploadFileCont .qbdms-fileUp,.uploadFileCont i,.addFormTr1").hide();
        $(".uploadFileCont").each(function () {
            if ($(this).children('.uploadFileList').children().length == 0) {
                $(this).children('.uploadFileList').append("<span style='color: #C0C4CC'>未上传</span>")
            }
        })
    });
</script>
</body>
</html>